package com.zzg.author.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.zzg.author.condition.UserCondition;
import com.zzg.author.model.domain.SysUser;
import com.zzg.base.mapper.BaseMapper;

import java.util.List;

/**
 * zzg
 **/
@Mapper
@Repository
public interface SysUserMapper extends BaseMapper<SysUser>{
    List<SysUser> listUsersByRoleId(Integer roleId);
    List<SysUser> findPageBreakByCondition(UserCondition vo);
    SysUser selectUserByName(String userName);
    /**修改最后登录时间**/
    void updateLastLoginTime(SysUser sysUser);

    List<SysUser> findByRoleId(Integer roleId);

    int updateByUserId(SysUser sysUser);
}
